package com.wf.course.model.log;

/**
 * 系统管理员操作日志
 * @author lyinlong
 *
 */
public class SysOperateLog {

	private Integer id;
	/**
	 * 操作者用户名
	 */
	private String userName;
	/**
	 * 用户编号
	 */
	private Integer userId;
	/**
	 * 此操作的详细说明
	 */
	private String intro;
	/**
	 * 操作的类名
	 */
	private String className;
	/**
	 * 操作的方法名
	 */
	private String methodName;
	/**
	 * 方法的参数
	 */
	private String args;
	/**
	 * 操作时间
	 */
	private String createTime;
	
	public SysOperateLog() {
		super();
		// TODO Auto-generated constructor stub
	}
	public SysOperateLog(Integer id, String userName, Integer userId,String intro, String className, String methodName, String args,
			String createTime) {
		super();
		this.id = id;
		this.userName = userName;
		this.userId = userId;
		this.intro = intro;
		this.className = className;
		this.methodName = methodName;
		this.args = args;
		this.createTime = createTime;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getMethodName() {
		return methodName;
	}
	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}
	public String getArgs() {
		return args;
	}
	public void setArgs(String args) {
		this.args = args;
	}
	public String getCreateTime() {
		if(createTime!=null && createTime.length()==21){
			createTime = createTime.substring(0, createTime.lastIndexOf("."));
		}
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getIntro() {
		return intro;
	}
	public void setIntro(String intro) {
		this.intro = intro;
	}
}
